﻿<%@ Page Title="Item Master Data" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="ItemMasterData.aspx.cs" Inherits="SAP.ItemMasterData" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        Main.myUpdatePanelId = '<%= purchaseOrderUpdatePanel.ClientID %>';
    </script>
    <asp:UpdatePanel ID="purchaseOrderUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="contentData" style="padding-left: 15px;">
            <div id="menu-action" style="margin-left: -15px;">
                    <ul>
                        <li><a href="#">
                            <img alt="" src="/skin/icon/preview.png" /></a></li>
                        <li><a href="#">
                            <img alt="" src="/skin/icon/print.png" /></a></li>
                        <li><a href="#">
                            <img alt="" src="/skin/icon/email.png" /></a></li>
                        <li><a href="#">
                            <img alt="" src="/skin/icon/excel.png" /></a></li>
                        <li><a href="#">
                            <img alt="" src="/skin/icon/pdf.png" /></a></li>
                        <li><a href="#">
                            <img alt="" src="/skin/icon/word.png" /></a></li>
                        
                         <li>
                            <asp:HyperLink ID="linkNew" runat="server"> <asp:Image ID="Image4" runat="server" ImageUrl="~/skin/icon/addnew.png" /></asp:HyperLink>
                        </li>
                        <li>
                            <asp:HyperLink ID="linkFirst" runat="server"> <asp:Image ID="Image5" runat="server" ImageUrl="~/skin/icon/first.png" /></asp:HyperLink>
                        </li>
                        <li>
                            <asp:HyperLink ID="linkPrevious" runat="server"> <asp:Image ID="Image6" runat="server" ImageUrl="~/skin/icon/previous.png" /></asp:HyperLink>
                        </li>
                        <li>
                            <asp:HyperLink ID="linkNext" runat="server"> <asp:Image ID="Image7" runat="server" ImageUrl="~/skin/icon/next.png" /></asp:HyperLink>
                        </li>
                        <li>
                            <asp:HyperLink ID="linkLast" runat="server"> <asp:Image ID="Image8" runat="server" ImageUrl="~/skin/icon/last.png" /></asp:HyperLink>
                        </li>
                 </ul>                    
                </div>
                <div id="title-form" style="border-bottom: 2px solid black;">
                    <h2>
                        DRUGS MASTER DATA</h2>
                    <asp:Label BackColor="Red" ID="lblResults" runat="server" />
                </div>
                <div id="header-form">
                    <div>
                        <table class="detail_table">
                            <tr>
                                <td class="detail_table_td_100" 
                                    style="border-bottom: dotted 1px #808080; width: 152px;">
                                    <span>Code</span>
                                    <asp:DropDownList ID="ddlSeries" runat="server" Width="100px" 
                                        AutoPostBack="true" 
                                        onselectedindexchanged="ddlSeries_SelectedIndexChanged">
                                    </asp:DropDownList>
                                
                                </td>
                                <td>
                                    <asp:TextBox ID="txtItemCode" runat="server" Width="120px" 
                                        ToolTip="txtItemCode"></asp:TextBox>
                                    Barcode
                                    <asp:TextBox ID="txtBarcode" runat="server" Width="103px" ToolTip="txtBarcode"></asp:TextBox>
                                    <asp:CheckBox ID="ckInvItem" runat="server" Text="Inventory Item" />
                                </td>
                            </tr>
                            <tr>
                                <td class="detail_table_td_100" 
                                    style="border-bottom: dotted 1px #808080; width: 152px;">
                                    <span>Name</span>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtItemName" runat="server" Width="279px"></asp:TextBox>
                                    <asp:CheckBox ID="ckSalesItem" runat="server" Text="Sales Item" />
                                </td>
                            </tr>
                            <tr>
                                <td class="detail_table_td_100" 
                                    style="border-bottom: dotted 1px #808080; width: 152px;">
                                    <span>Foreign Name</span>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtFName" runat="server" Width="279px"></asp:TextBox>
                                    <asp:CheckBox ID="ckPurchaseItem" runat="server" Text="Purchase Item" />
                                </td>
                            </tr>
                            <tr>
                                <td class="detail_table_td_100" 
                                    style="border-bottom: dotted 1px #808080; width: 152px;">
                                    <span>Item Type</span>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlItemType" runat="server" Width="120px">
                                         <asp:ListItem Text="Items" Value="I"></asp:ListItem>
                                        <asp:ListItem Text="Labor" Value="L"></asp:ListItem>
                                        <asp:ListItem Text="Travel" Value="T"></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td class="detail_table_td_100" 
                                    style="border-bottom: dotted 1px #808080; width: 152px;">
                                    <span>Item Group</span>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlItemGroup" runat="server" Width="120px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td class="detail_table_td_100" 
                                    style="border-bottom: dotted 1px #808080; width: 152px;">
                                    <span>Price List</span>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlPriceList" runat="server"  Width="120px" 
                                        AutoPostBack="True" 
                                        onselectedindexchanged="ddlPriceList_SelectedIndexChanged">
                                    </asp:DropDownList>
                                    Unit Price
                                    <asp:TextBox ID="txtUnitPrice" runat="server"  style="text-align: right" Width="103px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="clear">
                </div>
                <div id="content-form">
                    <div id="tabs">
                        <ul>
                            <li><a href="#tabs-1">General</a></li>
                            <li><a href="#tabs-2">Purchasing</a></li>
                            <li><a href="#tabs-3">Sales</a></li>
                            <li><a href="#tabs-4">Inventory</a></li>
                            <li><a href="#tabs-5">Planning</a></li>
                            <li><a href="#tabs-6">Properties</a></li>
                            <li><a href="#tabs-7">Remarks</a></li>
                            <li><a href="#tabs-8">Attachments</a></li>
                            <li><a href="#tabs-9">Batch Number</a></li>
                        </ul>
                        <div id="tabs-1"  style="overflow: auto; height: 300px; margin-top: 0px;">
                            <table class="detail_table">
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 127px;">
                                        <span>Manufacturer</span>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlManufacture" runat="server" Width="130px">
                                        </asp:DropDownList>
                                    </td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Issue Method</span></td>
                                    <td>
                                        <asp:DropDownList ID="ddlIssueType" runat="server" Width="130px">
                                             <asp:ListItem Text="Manual" Value="M"></asp:ListItem>
                                            <asp:ListItem Text="Backflush" Value="B"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 127px;">
                                        <span>Additional Identifier</span>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtAddID" runat="server"></asp:TextBox>
                                    </td>
                                    <td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Manage Item by</span></td>
                                    <td>
                                        <asp:DropDownList ID="ddlManageBy" runat="server" Width="130px" 
                                            AutoPostBack="True">
                                            <asp:ListItem Text="Batches" Value="B"></asp:ListItem>
                                            <asp:ListItem Text="Serial Number" Value="S"></asp:ListItem>
                                             <asp:ListItem Text="None" Value="N"></asp:ListItem>
                                            
                                            
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 127px;">
                                        <span>Shipping Type</span>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlShipping" runat="server" Width="130px">
                                        </asp:DropDownList>
                                    </td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Phantom Item</span></td>
                                    <td>
                                        <asp:CheckBox ID="ckPhantom" runat="server" />
                                    </td>--%>
                                </tr>
                            </table>
                        </div>
                        <div id="tabs-2" style="overflow: auto; height: 300px; margin-top: 0px;">
                            <table class="detail_table">
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Preferred Vendor</span></td>
                                    <td>
                                        <asp:TextBox ID="txtPurRefVendor" runat="server"></asp:TextBox>
                                    </td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Length</span></td>
                                    <td>
                                        <asp:TextBox ID="txtPurLen" runat="server"></asp:TextBox>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Mfr Catalog No.</span></td>
                                    <td>
                                        <asp:TextBox ID="txtPurMrfNo" runat="server"></asp:TextBox>
                                    </td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Width</td>
                                    <td>
                                        <asp:TextBox ID="txtPurWid" runat="server"></asp:TextBox>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Purchasing UoM</span></td>
                                    <td>
                                        <asp:TextBox ID="txtPurUOM" runat="server"></asp:TextBox>
                                    </td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Height</td>
                                    <td>
                                        <asp:TextBox ID="txtPurHei" runat="server"></asp:TextBox>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Items per Purchase Unit</span></td>
                                    <td>
                                        <asp:TextBox ID="txtPurchaseItemPer" runat="server"></asp:TextBox>
                                    </td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Volume</td>
                                    <td>
                                        <asp:TextBox ID="txtPurVol" runat="server"></asp:TextBox>
                                        <asp:DropDownList ID="ddlPurVolUnit" runat="server" AutoPostBack="True" 
                                            Width="70px">
                                        </asp:DropDownList>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Packaging UoM (Purchasing)</span></td>
                                    <td>
                                        <asp:TextBox ID="txtPurPackingUOM" runat="server"></asp:TextBox>
                                    </td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                       <span> Weight</td>
                                    <td>
                                        <asp:TextBox ID="txtPurWei" runat="server"></asp:TextBox>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Quantity per Packaging UoM</span></td>
                                    <td>
                                        <asp:TextBox ID="txtPurQtyPerPacking" runat="server"></asp:TextBox>
                                    </td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Factor 1</span></td>
                                    <td>
                                        <asp:TextBox ID="txtPurFac1" runat="server"></asp:TextBox>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Customs Group</span></td>
                                    <td>
                                        <asp:DropDownList ID="ddlPurCustomGroup" runat="server" Width="130px" 
                                            AutoPostBack="True">
                                        </asp:DropDownList>
                                        <asp:TextBox ID="txtPurCustomPer" runat="server" Enabled="False" Width="45px"></asp:TextBox>
                                        %</td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Factor 2</span></td>
                                    <td>
                                        <asp:TextBox ID="txtPurFac2" runat="server"></asp:TextBox>
                                    </td>--%>
                                </tr>
                                <tr style="display:none">
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Tax Group</span></td>
                                    <td>
                                        <asp:DropDownList ID="ddlPurTaxGroup" runat="server" Width="130px" 
                                            AutoPostBack="True" >
                                        </asp:DropDownList>
                                        <asp:TextBox ID="txtPurTaxPer" runat="server" Enabled="False" Width="45px"></asp:TextBox>
                                        %</td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Factor 3</span></td>
                                    <td>
                                        <asp:TextBox ID="txtPurFac3" runat="server"></asp:TextBox>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" >
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                   <%-- <td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Factor 4</span></td>
                                    <td>
                                        <asp:TextBox ID="txtPurFac4" runat="server"></asp:TextBox>
                                    </td>--%>
                                </tr>
                            </table>
                        </div>
                        <div id="tabs-3" style="overflow: auto; height: 300px; margin-top: 0px;">
                            <table class="detail_table">
                                <tr>
                                    <td class="detail_table_td_100" >
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Length</span></td>
                                    <td>
                                        <asp:TextBox ID="txtSalLen" runat="server"></asp:TextBox>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" >
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Width</td>
                                    <td>
                                        <asp:TextBox ID="txtSalWid" runat="server"></asp:TextBox>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Sales UoM</span></td>
                                    <td>
                                        <asp:TextBox ID="txtSalUOM" runat="server"></asp:TextBox>
                                    </td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Height</td>
                                    <td>
                                        <asp:TextBox ID="txtSalHei" runat="server"></asp:TextBox>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Items per Sales Unit</span></td>
                                    <td>
                                        <asp:TextBox ID="txtSalItemPer" runat="server"></asp:TextBox>
                                    </td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Volume</td>
                                    <td>
                                        <asp:TextBox ID="txtSalVol" runat="server"></asp:TextBox>
                                        <asp:DropDownList ID="ddlSalVolUnit" runat="server" AutoPostBack="True" 
                                            Width="70px">
                                        </asp:DropDownList>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Packaging UoM (Sales)</span></td>
                                    <td>
                                        <asp:TextBox ID="txtSalPackingUOM" runat="server"></asp:TextBox>
                                    </td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                       <span> Weight</td>
                                    <td>
                                        <asp:TextBox ID="txtSalWei" runat="server"></asp:TextBox>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Quantity per Packaging UoM</span></td>
                                    <td>
                                        <asp:TextBox ID="txtSalQtyPerPacking" runat="server"></asp:TextBox>
                                    </td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Factor 1</span></td>
                                    <td>
                                        <asp:TextBox ID="txtSalFac1" runat="server"></asp:TextBox>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <asp:DropDownList ID="ddlCommision" runat="server" Width="130px">
                                            <asp:ListItem Text="Fixed Commission" Value="-9"></asp:ListItem>
                                            <asp:ListItem Text="Use-Defined Commission" Value="0"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtCommision" runat="server"></asp:TextBox>
                                    </td>
                                   <%-- <td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Factor 2</span></td>
                                    <td>
                                        <asp:TextBox ID="txtSalFac2" runat="server"></asp:TextBox>
                                    </td>--%>
                                </tr>
                                <tr style="display:none">
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Tax Group</span></td>
                                    <td>
                                        <asp:DropDownList ID="ddlSalTaxGroup" runat="server" Width="130px" 
                                            AutoPostBack="True" >
                                        </asp:DropDownList>
                                        <asp:TextBox ID="txtPurTaxPer0" runat="server" Enabled="False" Width="45px"></asp:TextBox>
                                        %</td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Factor 3</span></td>
                                    <td>
                                        <asp:TextBox ID="txtSalFac3" runat="server"></asp:TextBox>
                                    </td>--%>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" >
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                    <%--<td class="detail_table_td_100" style="border-bottom: dotted 1px #808080;">
                                        <span>Factor 4</span></td>
                                    <td>
                                        <asp:TextBox ID="txtSalFac4" runat="server"></asp:TextBox>
                                    </td>--%>
                                </tr>
                            </table>
                        </div>
                        <div id="tabs-4">
                            <table class="detail_table">
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 127px;">
                                        <span>Set G/L Accounts By</span></td>
                                    <td>
                                        <asp:DropDownList ID="ddlGLBy" runat="server" Width="130px">
                                             <asp:ListItem Text="Item Group" Value="C"></asp:ListItem>
                                            <asp:ListItem Text="Warehouse" Value="W"></asp:ListItem>
                                            <asp:ListItem Text="Item Level" Value="L"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 211px;">
                                        <span>Manage Inventory by Warehouse</span></td>
                                    <td>
                                        <asp:CheckBox ID="ckManageBy" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 127px;">
                                        <span>Inventory UoM</span></td>
                                    <td>
                                        <asp:TextBox ID="txtInvUOM" runat="server"></asp:TextBox>
                                    </td>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 211px;">
                                        <span>Required (Purchasing UoM)</span></td>
                                    <td>
                                        <asp:TextBox ID="txtRequireUOM" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 127px;">
                                        <span>Valuation Method</span></td>
                                    <td>
                                        <asp:DropDownList ID="ddlValuationMethod" runat="server" Width="130px">
                                            <asp:ListItem Text="Moving Average" Value="A"></asp:ListItem>
                                            <asp:ListItem Text="Standard" Value="S"></asp:ListItem>
                                            <asp:ListItem Text="FIFO" Value="F"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 211px;">
                                        <span>Minimum</span></td>
                                    <td>
                                        <asp:TextBox ID="txtMinInv" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 127px;">
                                        <span>Item Cost</span></td>
                                    <td>
                                        <asp:TextBox ID="txtItemCost" runat="server"></asp:TextBox>
                                    </td>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 211px;">
                                        <span>Maximum</span></td>
                                    <td>
                                        <asp:TextBox ID="txtMaxIn" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                            <asp:ListView ID="lvItemWarehouse" runat="server" ViewStateMode="Enabled" >
                                <LayoutTemplate>
                                    <table class="data_table">
                                        <tr>
                                            
                                            <th style="width: 30px">
                                                <span>No</span>
                                            </th>
                                            <th style="width: 80px">
                                                <span>Whse Code</span>
                                            </th>
                                            <th style="width: 50px">
                                                <span>Whse Name</span>
                                            </th>
                                            <th style="width: 100px">
                                                <span>Locked</span>
                                            </th>
                                            <th style="width: 100px">
                                                <span>In Stock</span>
                                            </th>
                                            <th style="width: 60px">
                                                <span>Committed</span>
                                            </th>
                                            <th style="width: 100px">
                                                <span>Ordered</span>
                                            </th>
                                            <th style="width: 100px">
                                                <span>Available</span>
                                            </th>
                                            <th style="width: 78px">
                                            </th>
                                           
                                        </tr>
                                        <tr id="itemPlaceholder" runat="server">
                                        </tr>
                                    </table>
                                </LayoutTemplate>
                                <ItemTemplate>
                                    <tr>
                                        
                                        <td>
                                            <asp:Label runat="server" ID="lblNo" Text='<%#Eval("No")%>'></asp:Label>
                                        </td>                                      
                                        <td style="text-align: left">
                                            <asp:Label runat="server" ID="lblWhsCode" Text='<%#Eval("WhsCode")%>'></asp:Label>
                                        </td>
                                        <td style="text-align: left">
                                            <asp:Label runat="server" ID="lblWhsName"><%#Eval("WhsName")%></asp:Label>
                                        </td>
                                        <td style="text-align: left">
                                            <asp:Label runat="server" ID="lblLocked" ><%#Eval("Locked")%></asp:Label>
                                        </td>
                                        <td style="text-align: left">
                                            <asp:Label runat="server" ID="lblQuantity" Text='<%# Eval("OnHand") %>'></asp:Label>
                                        </td>
                                        <td style="text-align: left">
                                            <asp:Label runat="server" ID="lblUnitPrice"><%#Eval("IsCommited")%></asp:Label>
                                        </td>
                                        <td style="text-align: right">
                                            <asp:Label runat="server" ID="lblDiscount"><%#Eval("OnOrder")%></asp:Label>
                                        </td>
                                       <td style="text-align: right">
                                             <asp:Label runat="server" ID="txtSumApplied"><%#Eval("Avaiable")%>></asp:Label>
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="imgbUpdate" runat="server" CommandName="Update" Text="Update"
                                                ImageUrl="~/skin/icon/save_icon_mono.gif" CausesValidation="true" ValidationGroup="vgrpSaveContact" />
                                        </td>
                                        
                                    </tr>
                                </ItemTemplate>
                                <EmptyDataTemplate>
                                    <table class="data_table">
                                        <tr>
                                           
                                            <th style="width: 30px">
                                                <span>No</span>
                                            </th>
                                            <th style="width: 80px">
                                                <span>Whse Code</span>
                                            </th>
                                            <th style="width: 50px">
                                                <span>Whse Name</span>
                                            </th>
                                            <th style="width: 100px">
                                                <span>Locked</span>
                                            </th>
                                            <th style="width: 100px">
                                                <span>In Stock</span>
                                            </th>
                                            <th style="width: 60px">
                                                <span>Committed</span>
                                            </th>
                                            <th style="width: 100px">
                                                <span>Ordered</span>
                                            </th>
                                            <th style="width: 100px">
                                                <span>Available</span>
                                            </th>
                                            <th style="width: 78px">
                                            </th>
                                             
                                        </tr>
                                        <tr>
                                            <td colspan="9">
                                                <span>No Data</span>
                                            </td>
                                        </tr>
                                    </table>
                                </EmptyDataTemplate>
                            </asp:ListView>
                        </div>
                        <div id="tabs-5">
                            <table class="detail_table">
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Planning Method</span></td>
                                    <td>
                                        <asp:DropDownList ID="ddlPlaningMethod" runat="server" Width="130px">
                                            <asp:ListItem Text="MRP" Value="M"></asp:ListItem>
                                            <asp:ListItem Text="None" Value="N"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Procurement Method</span></td>
                                    <td>
                                        <asp:DropDownList ID="ddlProcurementMethod" runat="server" Width="130px">
                                            <asp:ListItem Text="Buy" Value="B"></asp:ListItem>
                                            <asp:ListItem Text="Make" Value="M"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Order Interval</span></td>
                                    <td>
                                        <asp:DropDownList ID="ddlOrderInterval" runat="server" Width="130px">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Order Multiple</span></td>
                                    <td>
                                        <asp:TextBox ID="txtOrderMultiple" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Minimum Order Qty</span></td>
                                    <td>
                                        <asp:TextBox ID="txtMinOrder" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Lead Time</span></td>
                                    <td>
                                        <asp:TextBox ID="txtLeadTime" runat="server"></asp:TextBox>
                                        Days</td>
                                </tr>
                                <tr>
                                    <td class="detail_table_td_100" 
                                        style="border-bottom: dotted 1px #808080; width: 181px;">
                                        <span>Tolerance Days</span></td>
                                    <td>
                                        <asp:TextBox ID="txtTolerance" runat="server"></asp:TextBox>
                                        Days</td>
                                </tr>
                            </table>
                        </div>
                        <div id="tabs-6">
                            <div style="width:300px">
                                <asp:ListView ID="ListView1" runat="server" ViewStateMode="Enabled" >
                                <LayoutTemplate>
                                    <table class="data_table">
                                        <tr>
                                            
                                            <th style="width: 30px">
                                                <span>No</span>
                                            </th>
                                            <th style="width: 80px">
                                                <span>Property Name</span>
                                            </th>
                                            <th style="width: 50px">
                                                <span></span>
                                            </th>
                                            <th style="width: 78px">
                                            </th>
                                           
                                        </tr>
                                        <tr id="itemPlaceholder" runat="server">
                                        </tr>
                                    </table>
                                </LayoutTemplate>
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <asp:Label runat="server" ID="lblNo" Text='<%#Eval("No")%>'></asp:Label>
                                        </td>                                      
                                        <td style="text-align: left">
                                            <asp:Label runat="server" ID="lblWhsCode" Text='<%#Eval("WhsCode")%>'></asp:Label>
                                        </td>
                                        <td style="text-align: left">
                                            <asp:Label runat="server" ID="lblWhsName"><%#Eval("WhsName")%></asp:Label>
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="imgbUpdate" runat="server" CommandName="Update" Text="Update"
                                                ImageUrl="~/skin/icon/save_icon_mono.gif" CausesValidation="true" ValidationGroup="vgrpSaveContact" />
                                        </td>
                                        
                                    </tr>
                                </ItemTemplate>
                                <EmptyDataTemplate>
                                    <table class="data_table">
                                        <tr>
                                            <th style="width: 30px">
                                                <span>No</span>
                                            </th>
                                            <th style="width: 80px">
                                                <span>Property Name</span>
                                            </th>
                                            <th style="width: 50px">
                                                <span></span>
                                            </th>
                                        </tr>
                                        <tr>
                                            <td colspan="3">
                                                <span>No Data</span>
                                            </td>
                                        </tr>
                                    </table>
                                </EmptyDataTemplate>
                            </asp:ListView>
                            </div>
                            
                        </div>
                        <div id="tabs-7">
                            <table class="detail_table">
                                <tr>
                                    <td>
                                        <CKEditor:CKEditorControl ID="txtRemark" runat="server" Height="135px" Width=""></CKEditor:CKEditorControl>
                                    </td>
                            </table>
                        </div>
                        <div id="tabs-8">
                        </div>
                        <div id="tabs-9" style="overflow: auto; height: 300px; margin-top: 0px;">
                            <asp:ListView ID="lvHistory" runat="server"
                                ViewStateMode="Enabled">
                                <LayoutTemplate>
                                    <table class="data_table">
                                        <tr>
                                            <th style="width: 25px">
                                                <span>#</span>
                                            </th>
                                            <th style="width: 150px">
                                                <span>Batch Number</span>
                                            </th>
                                            <th style="width: 200px">
                                                <span>Expiry Date</span>
                                            </th>
                                            <th style="width: 200px">
                                                <span>Quantity Available</span>
                                            </th>
                                        </tr>
                                        <tr id="itemPlaceholder" runat="server">
                                        </tr>
                                    </table>
                                </LayoutTemplate>
                                <ItemTemplate>
                                    <tr>
                                        
                                        <td>
                                            <asp:Label runat="server" ID="lblNo" Text='<%#Eval("No")%>'></asp:Label>
                                        </td>
                                        <td style="text-align: left">
                                            <asp:Label runat="server" ID="lblAdresType" Text='<%# Eval("DocDate") %>'></asp:Label>
                                        </td>
                                        <td style="text-align: left">
                                            <asp:Label runat="server" ID="lblAddress" Text='<%# Eval("SlpName") %>'></asp:Label>
                                        </td>
                                         <td style="text-align: left">
                                            <asp:Label runat="server" ID="Label1" Text='<%# Eval("WhsName") %>'></asp:Label>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                
                                <EmptyDataTemplate>
                                    <table class="data_table">
                                        <tr>
                                           <th style="width: 25px">
                                                <span>#</span>
                                            </th>
                                            <th style="width: 150px">
                                                <span>Batch Number</span>
                                            </th>
                                            <th style="width: 200px">
                                                <span>Expiry Date</span>
                                            </th>
                                            <th style="width: 200px">
                                                <span>Quantity Available</span>
                                            </th>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <span>No Data</span>
                                            </td>
                                        </tr>
                                    </table>
                                </EmptyDataTemplate>
                            </asp:ListView>
                            
                        </div>
                    </div>
                   
                    <br />
                </div>
                <div id="footer-form">
                    <div>
                        <asp:ImageButton ID="btnAdd" runat="server" AlternateText="button" OnClientClick="Dialog.showLoader();"
                            CommandName="Login" Height="19px" Width="65px" ImageUrl="~/skin/images/SAP_Add.png"
                            OnClick="btnAdd_Click" />
                        <asp:ImageButton ID="btnUpdate" runat="server" AlternateText="button" 
                             Height="19px" Width="65px" 
                            ImageUrl="~/skin/images/SAP_update.png" onclick="btnAdd_Click" OnClientClick="Dialog.showLoader();"/>
                    </div>
                    <div class="right">
                    </div>
                    <div class="clear">
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
